import service from '@/utils/request'

export const createOdsDbSync = (data) => {
  return service({
    url: '/odsDbSync/createOdsDbSync',
    method: 'post',
    data
  })
}

export const deleteOdsDbSync = (data) => {
  return service({
    url: '/odsDbSync/deleteOdsDbSync',
    method: 'delete',
    data
  })
}

export const deleteOdsDbSyncByIds = (data) => {
  return service({
    url: '/odsDbSync/deleteOdsDbSyncByIds',
    method: 'delete',
    data
  })
}

export const updateOdsDbSync = (data) => {
  return service({
    url: '/odsDbSync/updateOdsDbSync',
    method: 'put',
    data
  })
}

export const findOdsDbSync = (params) => {
  return service({
    url: '/odsDbSync/findOdsDbSync',
    method: 'get',
    params
  })
}

export const getOdsDbSyncList = (params) => {
  return service({
    url: '/odsDbSync/getOdsDbSyncList',
    method: 'get',
    params
  })
}

export const getAllOdsDbSyncs = (params) => {
  return service({
    url: '/odsDbSync/getAllOdsDbSyncs',
    method: 'get',
    params
  })
}

export const getOdsTbSyncTree = (params) => {
  return service({
    url: '/odsDbField/getOdsTbSyncTree',
    method: 'get',
    params
  })
}

export const getOdsDbSync = (data) => {
  return service({
    url: '/odsDbSync/getOdsDbSync',
    method: 'post',
    data
  })
}

export const testOdsDbSync = (data) => {
  return service({
    url: '/odsDbSync/testOdsDbSync',
    method: 'post',
    data
  })
}
